﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200033F RID: 831
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class CommonRogueUpdateScNotify : IMessage<CommonRogueUpdateScNotify>, IMessage, IEquatable<CommonRogueUpdateScNotify>, IDeepCloneable<CommonRogueUpdateScNotify>, IBufferMessage
	{
		// Token: 0x17000ACE RID: 2766
		// (get) Token: 0x06002558 RID: 9560 RVA: 0x000692DC File Offset: 0x000674DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<CommonRogueUpdateScNotify> Parser
		{
			get
			{
				return CommonRogueUpdateScNotify._parser;
			}
		}

		// Token: 0x17000ACF RID: 2767
		// (get) Token: 0x06002559 RID: 9561 RVA: 0x000692E3 File Offset: 0x000674E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return CommonRogueUpdateScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000AD0 RID: 2768
		// (get) Token: 0x0600255A RID: 9562 RVA: 0x000692F5 File Offset: 0x000674F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return CommonRogueUpdateScNotify.Descriptor;
			}
		}

		// Token: 0x0600255B RID: 9563 RVA: 0x000692FC File Offset: 0x000674FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CommonRogueUpdateScNotify()
		{
		}

		// Token: 0x0600255C RID: 9564 RVA: 0x00069304 File Offset: 0x00067504
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CommonRogueUpdateScNotify(CommonRogueUpdateScNotify other) : this()
		{
			CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase iecogfdcoppcase = other.IECOGFDCOPPCase;
			if (iecogfdcoppcase != CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo)
			{
				if (iecogfdcoppcase == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA)
				{
					this.ONGHNJCGJLA = other.ONGHNJCGJLA.Clone();
				}
			}
			else
			{
				this.RogueAreaInfo = other.RogueAreaInfo.Clone();
			}
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600255D RID: 9565 RVA: 0x0006935E File Offset: 0x0006755E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CommonRogueUpdateScNotify Clone()
		{
			return new CommonRogueUpdateScNotify(this);
		}

		// Token: 0x17000AD1 RID: 2769
		// (get) Token: 0x0600255E RID: 9566 RVA: 0x00069366 File Offset: 0x00067566
		// (set) Token: 0x0600255F RID: 9567 RVA: 0x0006937E File Offset: 0x0006757E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DEIPJCNOIBO RogueAreaInfo
		{
			get
			{
				if (this.iECOGFDCOPPCase_ != CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo)
				{
					return null;
				}
				return (DEIPJCNOIBO)this.iECOGFDCOPP_;
			}
			set
			{
				this.iECOGFDCOPP_ = value;
				this.iECOGFDCOPPCase_ = ((value == null) ? CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.None : CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo);
			}
		}

		// Token: 0x17000AD2 RID: 2770
		// (get) Token: 0x06002560 RID: 9568 RVA: 0x00069394 File Offset: 0x00067594
		// (set) Token: 0x06002561 RID: 9569 RVA: 0x000693AD File Offset: 0x000675AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ADILAOJIMPO ONGHNJCGJLA
		{
			get
			{
				if (this.iECOGFDCOPPCase_ != CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA)
				{
					return null;
				}
				return (ADILAOJIMPO)this.iECOGFDCOPP_;
			}
			set
			{
				this.iECOGFDCOPP_ = value;
				this.iECOGFDCOPPCase_ = ((value == null) ? CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.None : CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA);
			}
		}

		// Token: 0x17000AD3 RID: 2771
		// (get) Token: 0x06002562 RID: 9570 RVA: 0x000693C4 File Offset: 0x000675C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase IECOGFDCOPPCase
		{
			get
			{
				return this.iECOGFDCOPPCase_;
			}
		}

		// Token: 0x06002563 RID: 9571 RVA: 0x000693CC File Offset: 0x000675CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void ClearIECOGFDCOPP()
		{
			this.iECOGFDCOPPCase_ = CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.None;
			this.iECOGFDCOPP_ = null;
		}

		// Token: 0x06002564 RID: 9572 RVA: 0x000693DC File Offset: 0x000675DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as CommonRogueUpdateScNotify);
		}

		// Token: 0x06002565 RID: 9573 RVA: 0x000693EC File Offset: 0x000675EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(CommonRogueUpdateScNotify other)
		{
			return other != null && (other == this || (object.Equals(this.RogueAreaInfo, other.RogueAreaInfo) && object.Equals(this.ONGHNJCGJLA, other.ONGHNJCGJLA) && this.IECOGFDCOPPCase == other.IECOGFDCOPPCase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002566 RID: 9574 RVA: 0x00069450 File Offset: 0x00067650
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo)
			{
				num ^= this.RogueAreaInfo.GetHashCode();
			}
			if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA)
			{
				num ^= this.ONGHNJCGJLA.GetHashCode();
			}
			num ^= (int)this.iECOGFDCOPPCase_;
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002567 RID: 9575 RVA: 0x000694AE File Offset: 0x000676AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002568 RID: 9576 RVA: 0x000694B6 File Offset: 0x000676B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002569 RID: 9577 RVA: 0x000694C0 File Offset: 0x000676C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.RogueAreaInfo);
			}
			if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.ONGHNJCGJLA);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600256A RID: 9578 RVA: 0x0006951C File Offset: 0x0006771C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueAreaInfo);
			}
			if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ONGHNJCGJLA);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600256B RID: 9579 RVA: 0x00069578 File Offset: 0x00067778
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CommonRogueUpdateScNotify other)
		{
			if (other == null)
			{
				return;
			}
			CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase iecogfdcoppcase = other.IECOGFDCOPPCase;
			if (iecogfdcoppcase != CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo)
			{
				if (iecogfdcoppcase == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA)
				{
					if (this.ONGHNJCGJLA == null)
					{
						this.ONGHNJCGJLA = new ADILAOJIMPO();
					}
					this.ONGHNJCGJLA.MergeFrom(other.ONGHNJCGJLA);
				}
			}
			else
			{
				if (this.RogueAreaInfo == null)
				{
					this.RogueAreaInfo = new DEIPJCNOIBO();
				}
				this.RogueAreaInfo.MergeFrom(other.RogueAreaInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600256C RID: 9580 RVA: 0x000695FC File Offset: 0x000677FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600256D RID: 9581 RVA: 0x00069608 File Offset: 0x00067808
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 82U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						ADILAOJIMPO adilaojimpo = new ADILAOJIMPO();
						if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.ONGHNJCGJLA)
						{
							adilaojimpo.MergeFrom(this.ONGHNJCGJLA);
						}
						input.ReadMessage(adilaojimpo);
						this.ONGHNJCGJLA = adilaojimpo;
					}
				}
				else
				{
					DEIPJCNOIBO deipjcnoibo = new DEIPJCNOIBO();
					if (this.iECOGFDCOPPCase_ == CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase.RogueAreaInfo)
					{
						deipjcnoibo.MergeFrom(this.RogueAreaInfo);
					}
					input.ReadMessage(deipjcnoibo);
					this.RogueAreaInfo = deipjcnoibo;
				}
			}
		}

		// Token: 0x04000F12 RID: 3858
		private static readonly MessageParser<CommonRogueUpdateScNotify> _parser = new MessageParser<CommonRogueUpdateScNotify>(() => new CommonRogueUpdateScNotify());

		// Token: 0x04000F13 RID: 3859
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F14 RID: 3860
		public const int RogueAreaInfoFieldNumber = 4;

		// Token: 0x04000F15 RID: 3861
		public const int ONGHNJCGJLAFieldNumber = 10;

		// Token: 0x04000F16 RID: 3862
		private object iECOGFDCOPP_;

		// Token: 0x04000F17 RID: 3863
		private CommonRogueUpdateScNotify.IECOGFDCOPPOneofCase iECOGFDCOPPCase_;

		// Token: 0x020016AD RID: 5805
		public enum IECOGFDCOPPOneofCase
		{
			// Token: 0x04006155 RID: 24917
			None,
			// Token: 0x04006156 RID: 24918
			RogueAreaInfo = 4,
			// Token: 0x04006157 RID: 24919
			ONGHNJCGJLA = 10
		}
	}
}
